package kingiis.utils.simpleapp.utils;

import android.content.Context;
import android.support.v4.content.LocalBroadcastManager;

/**
 * Created by King on 2017/12/29 0029.
 * 本地广播
 */
public class LocalBroadcast {
    static LocalBroadcastManager manager;

    /**
     * LocalBroadcastManager use this obj to regist BroadcastReciver & unRugist BroadcastReciver.
     *
     * @param context
     * @return
     */
    public static LocalBroadcastManager getManager(Context context) {
        return manager == null ? LocalBroadcastManager.getInstance(context) : manager;
    }
}
